import storage from "@/utils/storage";

const TOKEN = "HAOKE-ZUFANG-HOUSELIST";

const TOKEN_CITYID = "HAOKE-CITYID";

const TOKEN_CITYNAME = "HAOKE-CITYNAME";

export const getToken = () => storage.get(TOKEN);

export const setToken = (value) => storage.set(TOKEN, value);

export const removeToken = () => storage.removeItem(TOKEN);

export const getCityId = () => storage.get(TOKEN_CITYID);

export const setCityId = (value) => storage.set(TOKEN_CITYID, value);

export const removeCityId = () => storage.removeItem(TOKEN_CITYID);

export const getCityName = () => storage.get(TOKEN_CITYNAME);

export const setCityName = (value) => storage.set(TOKEN_CITYNAME, value);

export const removeCityName = () => storage.removeItem(TOKEN_CITYNAME);
